<?php
use \app\common\services\UrlService;
use \app\common\services\StaticService;
StaticService::includeAppJsStatic('/js/m/product/order.js',app\assets\MAsset::className());
?>
<div style="min-height: 500px;">
	<div class="page_title clearfix">
    <span>订单提交</span>
</div>
<div class="order_box">
    <div class="order_header">
        <h2>确认收货地址</h2>
    </div>

    <ul class="address_list">
		<?php foreach($address as $v):?>
		<li style="padding: 5px 5px;">
            <label>
            <input style="display: inline;" type="radio" name="address_id" value="<?=$v['id']?>" <?php if($v['is_default']==1):?>
			checked
		<?php endif;?>
            >
                    <?=$v['address']?>（<?=$v['nickname']?>）<?=$v['mobile']?>                </label>

        </li>
          <?php endforeach;?>            
        </ul>


	<div class="order_header">
		<h2>确认订单信息</h2>
	</div>
	
	<?php foreach($product_list as $v):?>
		<ul class="order_list">
			<li data="<?=$v['id']?>" data-quantity="<?=$v['quantity']?>">
			<a href="/m/product/info?id=4">
				<i class="pic">
					<img src="<?=UrlService::buildPicUrl('book',$v['main_image'])?>" style="width: 100px;height: 100px;"/>
				</i>
				<h2><?=$v['name']?> x <?=$v['quantity']?></h2>
				<h4>&nbsp;</h4>
				<b>¥ <?=$v['price']?></b>
			</a>
		</li>
		</ul>
		<div class="order_header" style="border-top: 1px dashed #ccc;">
		<h2>总计：<?=$v['price']*$v['quantity']?></h2>
	</div>
	<?php endforeach;?>
</div>
<div class="op_box">
    <input type="hidden" name="sc" value="product">
	<input style="width: 100%;" type="button" value="确定下单" class="red_btn do_order"  />
</div>
</div>

